﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ElectronicsMarket.Service.IService;
using ElectronicsMarket.Service.Models;

namespace ElectronicsMarket.Service.ServiceImpl
{
    public class ReceiptDetailImpl:IReceiptDetail
    {
        ElectronicsMarketDBClassesDataContext eMEntity;
        public ReceiptDetailImpl()
        {
            eMEntity = new ElectronicsMarketDBClassesDataContext();
        }
        public void InsertReceiptDetail(RECEIPT_DETAIL receiptdetail)
        {
           
                eMEntity.RECEIPT_DETAILs.InsertOnSubmit(receiptdetail);
                eMEntity.SubmitChanges();
            
        }
    }
}